package com.appspot.diasporajava.dao.hibernate;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Component;

import com.appspot.diasporajava.dao.PodDao;
import com.appspot.diasporajava.entities.Pod;

@Component
public class PodDaoHibernate extends GenericDaoHibernateImpl<Pod,Long> implements PodDao<Pod,Long>  {

	@Override
	public List<Pod> findByUrl(String url) {
		Query query = getSession().createQuery("from Pod where domainName='" + url + "'");
		return query.list();
	}

	@Override
	public void delete(Long id) {
		// TODO Auto-generated method stub
		
	}

}
